package com.zer0.tga.entity.livingentity.mob;

import com.zer0.tga.entity.Entity;
import com.zer0.tga.entity.livingentity.LivingEntity;
import com.zer0.tga.entity.livingentity.Teemo;
import com.zer0.tga.entity.livingentity.flyingentity.TeemoDart;
import com.zer0.tga.math.Direction;

public abstract class Mob extends LivingEntity{
	
	public int damage = 1;
	
	public void die()
	{
		//explosion animation mabbe?
		level.getCurrentRoom().mobCount--;
	}
	
	public boolean collision(Entity entity, Direction dir) 
    {
	//	position.x += movementSpeed*knockback_x;
	//	position.y += movementSpeed*knockback_y;
	//	shouldTurn = true;
	//	System.out.println("asd " + entity.getClass().getSimpleName());
		
		if(entity instanceof TeemoDart)
		{
			hurt(((TeemoDart) entity).damage);
			entity.removed = true;

		}
		else if (entity instanceof Teemo)
		{
			//System.out.println("Collision!");
			return true;
			
		}
		return true;
		
		
    }
}
